><

Customizing the Actions Inspector



You can customize this Inspector further by adding additional elements. Make a copy of the alert.action file and name it test.action. Now open the file in Adobe GoLive where you will alter its contents.

Click on the field containing the text "Message." You'll notice the Inspector comes up and lists this as a Static Text item whose name is "Message." You can change the text listed here by changing its name. Now click on the blank entry field and you'll see this is listed as a Param Name. The Param Name corresponds to the <csactionparam> tag above. Anything entered in this field will become an array value which gets passed to the JavaScript code. In this example any string input here can be referenced in the script by the array value "action[1]."

Now expand the layout grid vertically so that it measures about 75 pixels high. Ctrl-click (Windows) or Option-click (Mac OS) on the "Message" text and drag it to the bottom of the grid so that it makes a duplicate copy (you must duplicate these elements, you cannot just drag in a new text box). Change the type from Static Text to Info Text and the name of the message to: "This action brings up an alert box." Info Text allows you to include textual information in the dialog box. This is a good way to instruct the user about the action or provide annotation.


Creating Actions > Creating your own actions > Customizing the Actions Inspector